using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using WL.Think.Abp;

namespace WL.Think.Sample;

public class SampleDbMigratorDbContextFactory : ThinkDbMigratorDbContextFactory<SampleDbMigratorDbContext>
{
    protected override void ConfigureDbContextOptionsBuilder(DbContextOptionsBuilder<SampleDbMigratorDbContext> builder, IConfigurationRoot configuration)
    {
        builder.UseNpgsql(configuration.GetConnectionString("Default"));
    }
}
